package com.ning.parking.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ning.parking.domain.ParkingLotBaseInfo;
import com.ning.parking.domain.dto.ParkingSpaceDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


/**
* @Entity com.ning.parking.domain.ParkingLotBaseInfo
*/

@Mapper
public interface ParkingLotBaseInfoMapper extends BaseMapper<ParkingLotBaseInfo> {
    /**
     * 更新剩余车位数
     *
     * @param parkingSpace 车位数对象
     * @return 更新的行数
     */
    int updateEmptySpace(@Param("parkingSpace") ParkingSpaceDTO parkingSpace);

    String countParkingLotContainDel();


}
